package com.ding.second.common;

import java.util.ResourceBundle;

public class CommonTools {
	private static ResourceBundle rs;
	
	public static String getNewFileName(String fileName) {
		StringBuffer newFileName = new StringBuffer();
		String extension = fileName.substring(fileName.lastIndexOf('.'));
		newFileName.append(UUIDUtil.getUUID());
		newFileName.append(extension);
		return newFileName.toString();
	}
	
	public static String getPerfectMaterialPDFFullPath() {
		rs = ResourceBundle.getBundle("path");
		String realPath = rs.getString("perfectMaterialPDF");
		return realPath;
	}
	
	public static String getAuditReportWordAndPdf(String fileName) {
		rs = ResourceBundle.getBundle("path");
		String realPath = rs.getString("auditReportWordAndPdf");
		return realPath+ "/" +  fileName ; 
	}
	
	
	
}
